package com.ruoyi.train.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.train.mapper.ExamApplicationStudentMapper;
import com.ruoyi.train.domain.ExamApplicationStudent;
import com.ruoyi.train.service.IExamApplicationStudentService;

/**
 * 考试申请学员Service业务层处理
 * 
 * @author wusihao
 * @date 2023-03-26
 */
@Service
public class ExamApplicationStudentServiceImpl extends ServiceImpl<ExamApplicationStudentMapper, ExamApplicationStudent> implements IExamApplicationStudentService
{
    @Autowired
    private ExamApplicationStudentMapper examApplicationStudentMapper;

    /**
     * 查询考试申请学员
     * 
     * @param id 考试申请学员主键
     * @return 考试申请学员
     */
    @Override
    public ExamApplicationStudent selectExamApplicationStudentById(Long id)
    {
        return examApplicationStudentMapper.selectExamApplicationStudentById(id);
    }

    /**
     * 查询考试申请学员列表
     * 
     * @param examApplicationStudent 考试申请学员
     * @return 考试申请学员
     */
    @Override
    public List<ExamApplicationStudent> selectExamApplicationStudentList(ExamApplicationStudent examApplicationStudent)
    {
        return examApplicationStudentMapper.selectExamApplicationStudentList(examApplicationStudent);
    }

    /**
     * 新增考试申请学员
     * 
     * @param examApplicationStudent 考试申请学员
     * @return 结果
     */
    @Override
    public int insertExamApplicationStudent(ExamApplicationStudent examApplicationStudent)
    {
        return examApplicationStudentMapper.insertExamApplicationStudent(examApplicationStudent);
    }

    /**
     * 修改考试申请学员
     * 
     * @param examApplicationStudent 考试申请学员
     * @return 结果
     */
    @Override
    public int updateExamApplicationStudent(ExamApplicationStudent examApplicationStudent)
    {
        return examApplicationStudentMapper.updateExamApplicationStudent(examApplicationStudent);
    }

    /**
     * 批量删除考试申请学员
     * 
     * @param ids 需要删除的考试申请学员主键
     * @return 结果
     */
    @Override
    public int deleteExamApplicationStudentByIds(Long[] ids)
    {
        return examApplicationStudentMapper.deleteExamApplicationStudentByIds(ids);
    }

    /**
     * 删除考试申请学员信息
     * 
     * @param id 考试申请学员主键
     * @return 结果
     */
    @Override
    public int deleteExamApplicationStudentById(Long id)
    {
        return examApplicationStudentMapper.deleteExamApplicationStudentById(id);
    }
}
